package tech.fangsong.client.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import tech.fangsong.im.core.protocol.ImMsg;
import tech.fangsong.client.strategy.MessageStrategyContext;

public class ImClientHandler extends SimpleChannelInboundHandler<ImMsg> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, ImMsg imMsg) throws Exception {
        MessageStrategyContext.getInstance().received(channelHandlerContext,imMsg);
    }
}
